package com.lenin.metro.shared;

import java.io.Serializable;

public class ProjectionPoint implements Serializable {

	private long x;
	private long y;
	
	public ProjectionPoint() {
	
	}
	
	public ProjectionPoint(long x, long y) {
		this.x = x;
		this.y = y;
	}

	
	public long getX() {
		return x;
	}


	public void setX(long x) {
		this.x = x;
	}


	public long getY() {
		return y;
	}


	public void setY(long y) {
		this.y = y;
	}


	@Override
	public boolean equals(Object object) {
		
		if(object instanceof ProjectionPoint) {
			ProjectionPoint point = (ProjectionPoint)object;
			if(point.getX() == getX() && point.getY() == getY())
				return true;
		}
		
		return false;
		
	}
	
}
